package com.my.system.mapper;

import com.my.system.entity.SysUserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 用户和角色关联表 Mapper 接口
 * </p>
 *
 * @author my
 * @since 2021-04-27
 */
@Component
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    // 批量新增用户角色信息
    Integer batchUserRole(List<SysUserRole> list);

    // 删除用户与角色关联
    Integer deleteUserRoleByUserId(@Param("userId") Long userId);

    // 删除用户与角色关联
    Integer deleteUserRole(Long[] userIds);
}
